package com.chang.controller;

import com.chang.anno.RedisLimitAnnotation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: changzhenxi
 * @date: 2025/08/11 21:54
 * @description:
 */
@RestController
public class RedisLimitController {

    @GetMapping("limit")
    @RedisLimitAnnotation(key="redisLimit",limit = 3,expire = 20,msg = "点的太快了")
    public String redisLimit() {
        return "业务正常返回~~~~~~~~~~~~~";
    }
}
